package org.zfes.snowier.cloud.zbss.cms.words.service;

import java.util.List;
import java.util.Map;
import java.util.Optional;
import org.zfes.snowier.core.data.DataSet;
import org.springframework.scheduling.annotation.Async;
import org.zfes.snowier.cloud.zbss.cms.words.model.CmsWordsHistory;
@Async
public interface ICmsWordsHistoryService{

	 Optional<CmsWordsHistory> loadCmsWordsHistoryById(Long id);
	
	 void createCmsWordsHistory(CmsWordsHistory cmsWordsHistory);
	 
	 void updateCmsWordsHistory(CmsWordsHistory cmsWordsHistory);
     
	 void deleteCmsWordsHistory(Long id);
	
	 DataSet loadCmsWordsHistoryDataSet(Map<String, Object> params);
	 //用户:查看用户搜索历史记录
	 List<CmsWordsHistory> loadCmsWordsHistoryByUserId(Long userId);
	 //用户：清空用户历史记录
	 void clearCmsWordsHistoryByUserId(Long userId);
	 // 
	 void setCmsWordsHistoryStatus(Long id, Byte status);
}